package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/9/5.
 */
public class MoneyInfo implements Parcelable{

    private String insuranceMoney;//":"投保额度",
    private String currentMoney;//":"当前额度",
    private String lockMoney;//":"冻结金额",
    private String insuranceTime;//":"投保期限"

    public MoneyInfo() {
    }

    public MoneyInfo(String insuranceMoney, String currentMoney, String lockMoney, String insuranceTime) {
        this.insuranceMoney = insuranceMoney;
        this.currentMoney = currentMoney;
        this.lockMoney = lockMoney;
        this.insuranceTime = insuranceTime;
    }

    public String getInsuranceMoney() {
        return insuranceMoney;
    }

    public void setInsuranceMoney(String insuranceMoney) {
        this.insuranceMoney = insuranceMoney;
    }

    public String getCurrentMoney() {
        return currentMoney;
    }

    public void setCurrentMoney(String currentMoney) {
        this.currentMoney = currentMoney;
    }

    public String getLockMoney() {
        return lockMoney;
    }

    public void setLockMoney(String lockMoney) {
        this.lockMoney = lockMoney;
    }

    public String getInsuranceTime() {
        return insuranceTime;
    }

    public void setInsuranceTime(String insuranceTime) {
        this.insuranceTime = insuranceTime;
    }

    @Override
    public String toString() {
        return "MoneyInfo{" +
                "insuranceMoney='" + insuranceMoney + '\'' +
                ", currentMoney='" + currentMoney + '\'' +
                ", lockMoney='" + lockMoney + '\'' +
                ", insuranceTime='" + insuranceTime + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.insuranceMoney);
        dest.writeString(this.currentMoney);
        dest.writeString(this.lockMoney);
        dest.writeString(this.insuranceTime);
    }

    protected MoneyInfo(Parcel in) {
        this.insuranceMoney = in.readString();
        this.currentMoney = in.readString();
        this.lockMoney = in.readString();
        this.insuranceTime = in.readString();
    }

    public static final Creator<MoneyInfo> CREATOR = new Creator<MoneyInfo>() {
        @Override
        public MoneyInfo createFromParcel(Parcel source) {
            return new MoneyInfo(source);
        }

        @Override
        public MoneyInfo[] newArray(int size) {
            return new MoneyInfo[size];
        }
    };
}
